/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 错题相关的一些类型
 */
import type { PageRes } from './commom'

export interface ErrorQuestionReq {
  page?: number
  pageSize?: number
  userId?:string
  paperId?:string
}

export interface ErrorPaperReq{
  page?: number
  pageSize?: number
  examId:string
}

// ErrorQuestion返回实体
export interface ErrorQuestionRes {
  id: string
  userId: string
  questionId:string
  paperId:string
  User:any
  Paper:any
  Question:any
  createTime:string
}

// 分页ErrorQuestion返回实体
export type ErrorQuestionPageRes = PageRes<ErrorQuestionRes>

export interface ErrorPaperRes{
  id:string
  paperId:string
  Paper:any
}

// 错题添加请求实体类型
export interface ErrorQuestionCreateReq {
  questionIds:string[]
  paperId:string
}

// 错题修改请求实体
export interface ErrorQuestionUpdateReq {
  errorQuestionId?: string
  paperId:string
}

export type ErrorQuestionRowData = ErrorQuestionRes
